<script type="text/javascript" src="${base}/scripts/jsgl/wljsd_detail.js"></script>
<div id="wljsd_tab" class="easyui-tabs" detail="true" data-options="fit:true,border:false">
    <div title="物流结算单">
        <table style="width: 99%;margin: 5px" class="tb tab-t t-bor">
            <input type="hidden" id="wljsd_detail_id" value="${(wljsd.id)!}"/>
            <col width="70px"/>
            <col width=""/>
            <col width="70px"/>
            <col width=""/>
            <col width="70px"/>
            <col width=""/>
            <tr>
                <th>结算单号：</th>
                <td colspan="5">
                ${(wljsd.jsdh)!}
                </td>
            </tr>
            <tr>
                <th>公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司：</th>
                <td colspan="3">${(wljsd.gs.jc)!}</td>
                <th>申&nbsp;请&nbsp;人：</th>
                <td>${(wljsd.sqr.xm)!}</td>
            </tr>
            <tr>
                <th>物&nbsp;流&nbsp;&nbsp;商：</th>
                <td>${(wljsd.glqy.qc)!}</td>
                <th>纳&nbsp;税&nbsp;&nbsp;号：</th>
                <td>${(wljsd.glqy.qyfr.nsh)!}</td>
                <th>发票种类：</th>
                <td>
                <#if (wljsd.fpzl)?exists && (wljsd.fpzl)==0>增票</#if>
                <#if (wljsd.fpzl)?exists && (wljsd.fpzl)==1>普票</#if>
                <#if (wljsd.fpzl)?exists && (wljsd.fpzl)==2>其他</#if>
                <#if (wljsd.fpzl)?exists && (wljsd.fpzl)==3>另开票</#if>
                <#if (wljsd.fpzl)?exists && (wljsd.fpzl)==4>物流发票</#if>
                </td>
            </tr>
            <tr>
                <th>发票张数：</th>
                <td>${(wljsd.fpzs)!}</td>
                <th>发票号码：</th>
                <td>${(wljsd.hm)!}</td>
                <th>发票总额：</th>
                <td>${(wljsd.fpze?string("0.00"))!}</td>
            </tr>
            <tr>
                <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                <td colspan="5">${(wljsd.bz)!}</td>
            </tr>
            <tr>
                <th>制&nbsp;单&nbsp;&nbsp;人：</th>
                <td>${(wljsd.createUser.xm)!}</td>
                <th>制单时间：</th>
                <td colspan="3">${(wljsd.dateCreated?datetime)!}</td>
            </tr>
        </table>
    </div>
    <div title="结算单明细">
        <table id="wljsd_jsdmx_table" class="easyui-datagrid" url="${base}/jsgl/wljsd/wldDetailList?wljsdId=${(wljsd.id)!}"
               rownumbers="true" fit="true" style="width: 2150px" fitColumns="false" showFooter="true">
            <thead>
            <tr>
                <th data-options="field:'sydw.qc',width:300,align: 'center'">物流商</th>
                <th data-options="field:'jfsl',width:150,formatter:formatSlForHtml,align: 'center'">计费数量</th>
                <th data-options="field:'dj',width:120,formatter:formatJeForHtml,align: 'right'">单价</th>
                <th data-options="field:'je',width:120,formatter:formatJeForHtml2,align: 'right'">总金额</th>
                <th data-options="field:'fylb.fykmjc',width:150,align: 'center'">费用类别</th>
                <th data-options="field:'hdsl',width:150,formatter:formatSlForHtml,align: 'right'">核定数量</th>
                <th data-options="field:'hddj',width:120,formatter:formatJeForHtml,align: 'right'">核定单价</th>
                <th data-options="field:'hdje',width:120,formatter:formatJeForHtml2,align: 'right'">核定总金额</th>
                <th data-options="field:'me',width:120,formatter:formatJeForHtml2,align: 'right'">面额</th>
                <th data-options="field:'kdse',width:120,formatter:formatJeForHtml2,align: 'right'">可抵税额</th>
                <th data-options="field:'se',width:100,formatter:formatJeForHtml2,align: 'right'">税额</th>
                <th data-options="field:'jsje',width:120,formatter:formatJeForHtml2,align: 'right'">净余额</th>
                <th data-options="field:'ce',width:100,formatter:formatJeForHtml2,align: 'right'">差额</th>
                <th data-options="field:'cgdh',width:180,align: 'center'">采购单号</th>
                <th data-options="field:'xsdh',width:180,align: 'center'">销售单号</th>
                <th data-options="field:'bz',width:100,align: 'center'">备注</th>
            </tr>
            </thead>
        </table>
    </div>
    <div title="物流结算单打印">
        <div id="wljsd-dy-toolbar">
            <div class="PTools">
                <ul class="niu">
                    <li><span class="xuan">选择打印机：</span>
                        <select class="ze" name="" style="">
                            <option>——默认——</option>
                        </select>
                    </li>
                    <li><a class="she" href="javascript:void(0);" onclick="checkIsInstall()">检查插件</a></li>
                    <li><a class="watch" href="javascript:void(0);" onclick="wljsd_dyPrintPreview()">打印预览</a></li>
                </ul>
            </div>
            <div id="wljsd_dy_id">
                <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
                    <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0
                           pluginspage="install_lodop32.exe"></embed>
                </object>
                <div id="wljsd_dy_print_id" class="textcon">
                    <table id="wljsddy_print_table" class="tb" style="width: 100%;font-size:13px;">
                        <colgroup>
                            <col width="10%;"/>
                            <col width="25%"/>
                            <col width="23%;"/>
                            <col width="12%"/>
                            <col width="12%;"/>
                            <col width="23%"/>
                        </colgroup>
                        <tbody>
                        <tr>
                            <th>物&nbsp;流&nbsp;&nbsp;商：</th>
                            <td>
                                <input name="wljsd.glqy" class="input-tian" readonly="readonly"
                                       value="${(wljsd.glqy.qc)!}"/>
                            </td>
                            <td rowspan="2" colspan="2" style="text-align: center;font-size: 20px">${(wljsd.gs.qc)!}物流结算单</td>
                            <th>结算单号:</th>
                            <td>
                                <input name="wljsd.jsdh" class="input-tian" readonly="readonly"
                                       value="${(wljsd.jsdh)!}"/>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>

                <div id="wljsd_dy_wljsd_id" class="textcon"></div>

                <div id="wljsd_dy_detail_id" class="textcon">
                    <table class="tb" style="width: 100%;font-size:13px;">
                        <colgroup>
                            <col width="9%;"/>
                            <col width="20%"/>
                            <col width="10%;"/>
                            <col width="20%"/>
                            <col width="10%;"/>
                            <col width="20%"/>
                        </colgroup>
                        <tbody>
                        <tr style="height: 40px">
                            <th style="font-size: 12px;">发票号码:</th>
                            <td>
                                <input name="wljsd.hm" class="input-tian" readonly="readonly"
                                       value="${(wljsd.hm)!}"/>
                            </td>
                            <th style="font-size: 12px;">发票张数:</th>
                            <td colspan="3">
                                <input  name="wljsd.fpzs" class="input-tian" readonly="readonly"
                                       value="${(wljsd.fpzs)!}"/>
                            </td>
                        </tr>
                        <tr>
                            <th style="font-size: 12px;">申请人：</th>
                            <td><input name="wljsd.sqr" class="input-tian" readonly="readonly"
                                       value="${(wljsd.sqr.xm)!}"/>
                            </td>
                            <th style="font-size: 12px;">制单人：</th>
                            <td colspan="3"><input name="wljsd.createUser" class="input-tian" readonly="readonly"
                                       value="${(wljsd.createUser.xm)!}"/>
                            </td>
                        </tr>
                        <tr style="height: 30px">
                            <th></th>
                            <td colspan="1"></td>
                            <th></th>
                            <td colspan="1"></td>
                            <th></th>
                            <td>${(CurrentTime?string('yyyy-MM-dd HH:mm:ss'))!}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
